# -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np

def oneHotEncodingToClassicEncoding(data):
	return tf.argmax(data, axis=1)

def npArrayToCPPFile(d, variateName, cppFileName):
	if type(d) != type(np.array([])):
		return
	
	with open(cppFileName, 'w') as f:
		f.write("const float %s[] = {\n"%(variateName))
		for row in d:
			f.write(", ".join([str(element) for element in row]))
			f.write(",\n")
		f.write("};\n")

def dataAugmentation(x, dim, timeSample, sampleStep, y):
	pass